﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            load();
        }
    }
    public void load()
    {
        string strsp = "SELECT TOP(3) tensp,hinh,gia FROM sanpham where IDnhomsp = 2";
        DataTable dt = Datadb.TruyVan_TraVeTable(strsp);
        Repeater1.DataSource = dt;
        Repeater1.DataBind();
    }
}